package com.lsk.remote;

import com.lsk.internalcommon.DTO.Car;
import com.lsk.internalcommon.DTO.DriverCarBindingRelationship;
import com.lsk.internalcommon.DTO.DriverUser;
import com.lsk.internalcommon.DTO.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient("service-driver-user")
public interface ServiceDriverUserClient {

    @RequestMapping(method = RequestMethod.POST,value = "/driver-user")
    public ResponseResult addDriverUser(@RequestBody DriverUser driverUser );

    @RequestMapping(method = RequestMethod.PUT,value = "/driver-user")
    public ResponseResult updateDriverUser(@RequestBody DriverUser driverUser );

    @RequestMapping(method = RequestMethod.POST,value = "/car")
    public ResponseResult addCar(@RequestBody Car car);

    @RequestMapping(method = RequestMethod.POST,value = "/DriverCarBindingRelationship/bind")
    public ResponseResult bind(@RequestBody DriverCarBindingRelationship relationship);
    @RequestMapping(method = RequestMethod.POST,value = "/DriverCarBindingRelationship/unbind")
    public ResponseResult unbind(@RequestBody DriverCarBindingRelationship relationship);
}
